package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Announcement {
    /**主键*/
    private Long id;

    /**标题*/
    private String title;

    /**创建者*/
    private Employee create;

    /**创建时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**通告等级*/
    private AnnoLevel level;

    /**发布状态*/
    private boolean postStatus;

    /**通告内容*/
    private String msg;

    /*读取状态*/
    private boolean readId;


    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}